package com.vains.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author vains
 * @since 2020-06-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="OauthPermission对象", description="资源表")
public class OauthPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "permission_id", type = IdType.AUTO)
    private Integer permissionId;

    @ApiModelProperty(value = "资源名称")
    private String permissionName;

    @ApiModelProperty(value = "资源路径(当资源是权限是就是接口地址，当是菜单栏时是页面地址)")
    private String permissionUrl;

    @ApiModelProperty(value = "父节点")
    private Integer permissionParentId;

    @ApiModelProperty(value = "0-导航栏  1-按钮  2-其他")
    private Integer permissionType;

    @ApiModelProperty(value = "是否删除")
    private Boolean permissionDeleted;

    @ApiModelProperty(value = "是否需要权限")
    private Boolean permissionAuthorization;

    @ApiModelProperty(value = "菜单图标")
    private String permissionIcon;


}
